<template>
<div class="app">
    <router-view ></router-view>
    name:{{$store.getters.getUser.name}}
</div>
</template>
<script>
export default {
    methods:{
        update:function(){
            this.$store.dispatch('user_update',{
                data:{name:'star'}
            });
            
        },exit:function(){
            this.$store.dispatch('user_remove')
        }
    }
}
</script>

<style lang="less" scoped>
@co:#ddd;
div{background: @co;}
p{background:url(./assets/image/1.png) no-repeat ;}
</style>
